/* eslint-disable no-undef,import/first */
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import Bridge from './assets/js/JSBridge.js' // js桥
// import '@/assets/js/jquery.min.js' // jQuery
import publicFun from './assets/js/publicFun' // 公共方法
import './assets/js/filters' // 全局过滤器
import './components' // 公共组件
// import 'echarts/map/js/china.js'  //加载中国地图
import echarts from 'echarts' // 加载echarts 绘图组件
import { Group, Cell, PopupRadio, XInput, XButton, Popup, XHeader, Search, Scroller, Alert, Flow, FlowState, FlowLine, Flexbox, FlexboxItem, Checker, CheckerItem, XDialog, numberComma, Grid, GridItem, PopupPicker, Picker, Actionsheet, Datetime, Tab, TabItem, Swipeout, SwipeoutItem, SwipeoutButton, Confirm, ButtonTab, ButtonTabItem, Toast, XSwitch, Icon, Swiper } from 'vux'

Vue.prototype.$publicFun = publicFun // 将 公共方法挂载到Vue
Vue.prototype.$echarts = echarts // 将 图形组件 挂载到Vue
Vue.prototype.$bridge = Bridge // 将JS桥方法挂载到Vue
Vue.config.productionTip = false
Vue.component('group', Group)
Vue.component('cell', Cell)
Vue.component('popup-radio', PopupRadio)
Vue.component('x-input', XInput)
Vue.component('x-button', XButton)
Vue.component('popup', Popup)
Vue.component('x-header', XHeader)
Vue.component('search', Search)
Vue.component('scroller', Scroller)
Vue.component('alert', Alert)
Vue.component('flow', Flow)
Vue.component('flow-state', FlowState)
Vue.component('flow-line', FlowLine)
Vue.component('flexbox', Flexbox)
Vue.component('flexbox-item', FlexboxItem)
Vue.component('checker', Checker)
Vue.component('checker-item', CheckerItem)
Vue.component('x-dialog', XDialog)
Vue.component('number-comma', numberComma)
Vue.component('grid', Grid)
Vue.component('grid-item', GridItem)
Vue.component('popup-picker', PopupPicker)
Vue.component('picker', Picker)
Vue.component('actionsheet', Actionsheet)
Vue.component('datetime', Datetime)
Vue.component('tab', Tab)
Vue.component('tab-item', TabItem)
Vue.component('swiper', Swiper)
Vue.component('swipeout', Swipeout)
Vue.component('swipeout-item', SwipeoutItem)
Vue.component('swipeout-button', SwipeoutButton)
Vue.component('confirm', Confirm)
Vue.component('button-tab', ButtonTab)
Vue.component('button-tab-item', ButtonTabItem)
Vue.component('toast', Toast)
Vue.component('x-switch', XSwitch)
Vue.component('icon', Icon)

/* eslint-disable*/
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
